//---------------------------------------------------------------------------

#include "stdafx.h"
#include "CommandLine.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)


#define MAX_OPTS 10

char *GetParamValue(char **szCmdParam)
{
   int len = strlen(*szCmdParam);
   for (int i=0;i<len;i++)
   {
      if (*szCmdParam[i]=='=')
      {
         return *(szCmdParam+i+1);
      }
   }
   return NULL;
}


bool LoadCommandLine(LPSTR pComLineStr, int c)
{
   if (c == 1) return false;

   //char *ppsz_argv[MAX_OPTS];

   char *szCmdParam=NULL;
   char *Value=NULL;

   //int cmd_c=0;
   //ppsz_argv = pComLineStr;

   for (int i=0; i<c; i++)
   {
      //szCmdParam = pComLineStr[i];

      Value = GetParamValue(pComLineStr[i]);


   }


   //if (strncmp(pComLineStr[++cmd_c], "", strlen())


   //switch



}



